﻿<local:ControlBase x:Name="userControl" x:Class="Rio.Framework.Pages.CriteriaControls.AdvancedSearchControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:Rio.Framework.Pages"
    xmlns:Criteria="clr-namespace:Rio.Framework.Pages.CriteriaControls"
    mc:Ignorable="d" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    
    <Grid x:Name="LayoutRoot" Margin="0,2,0,0">
        <Grid VerticalAlignment="Top">
        	<Grid.RowDefinitions>
        		<RowDefinition/>
        		<RowDefinition/>
        	</Grid.RowDefinitions>

            <TextBlock x:Name="LabelControl" Grid.Row="0"
                       Style="{StaticResource LabelIndexStyle}" 
                       Text="Texte label" 
                       Visibility="Visible" VerticalAlignment="Top"/>
        	
            <Grid VerticalAlignment="Bottom" Grid.Row="1"> 
        		<Grid.ColumnDefinitions>
        			<ColumnDefinition Width="65*"/>
        			<ColumnDefinition Width="40*"/>
        			<ColumnDefinition Width="340*"/>
        		</Grid.ColumnDefinitions>

        		<Criteria:ComparatorControl x:Name="ComboComparator" 
        			                        Grid.Column="0"
        			                        HorizontalContentAlignment="Left" 
                                            HorizontalAlignment="Left"
                                            Margin="2,3,0,0" 
                                            VerticalAlignment="Top" 
                                            BorderThickness="1" 
                                            SelectedOperator="{Binding SelectedOperator, ElementName=userControl, Mode=TwoWay}"/>

                <telerik:RadButton x:Name="AddButton" 
                                   Grid.Column="1"  
        			               Style="{StaticResource ButtonValidateHelpStyle}"
        			               Click="buttonAdd_Click" 
        			               Width="25"
                                   Height="24" 
                                   Margin="2,3,2,1" 
                                   VerticalAlignment="Top" 
                                   HorizontalAlignment="Left" >
                    <!--IsEnabled="{Binding AddControlEnabled, ElementName=userControl, Mode=TwoWay}">-->
        			<Image Width="16" 
                           Height="16" 
                           Source="../../Assets/Images/AddControl.png" 
                           HorizontalAlignment="Center" 
                           VerticalAlignment="Center"/>
        		</telerik:RadButton>

        		<StackPanel x:Name="StackControl" Grid.Column="2" VerticalAlignment="Top"  Margin="0">
        		</StackPanel>
        	</Grid>
        </Grid>
    </Grid>
</local:ControlBase>
